package com.lefevre.cms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lefevre.cms.bean.question.Question;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface QuestionMapper extends BaseMapper<Question> {
    /**
     * 保存追加问题
     *
     * @param questionId    问题Id
     * @param appendContent 追加问题内容 AppendQuestionItem对象的JSON格式加上逗号
     * @return
     */
    Integer appendContent(@Param("questionId") Long questionId, @Param("appendContent") String appendContent);
}
